/**
 * Copyright(c) 2014 Xunton Solutions
 *
 * History:
 *   15-11-13 下午8:38 Created by dwzhang
 */
package com.jade.modules.protocol;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 协议参数定义。
 *
 * @author <a href="mailto:dwzhang@xunton.com">dwzhang</a> 
 * @version 1.0 15-11-13 下午8:38
 */
//@Entity
//@Table (name = "MODULE_PROTOCOL_PARAM")
public class ProtocolParameter implements Serializable
{
    @Id
    //协议类型
    @Column (name = "type", nullable = false, length = 32)
    private String type;
    @Id
    //协议
    @Column (name = "protocol", nullable = false, length = 32)
    private String protocol;
    @Id
    //参数key
    @Column (name = "param_key", nullable = false, length = 32)
    private String key;
    //参数名称
    @Column (name = "name", nullable = false, length = 64)
    private String name;
    //是否必须
    @Column (name = "is_require", nullable = false)
    private boolean require = false;
    //默认值
    @Column (name = "default_value", length = 512)
    private String defaultValue;
    //参数备注
    @Column (name = "remark", length = 255)
    private String remark;

    public String getType()
    {
        return type;
    }

    public void setType(String type)
    {
        this.type = type;
    }

    public String getProtocol()
    {
        return protocol;
    }

    public void setProtocol(String protocol)
    {
        this.protocol = protocol;
    }

    public String getKey()
    {
        return key;
    }

    public void setKey(String key)
    {
        this.key = key;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public boolean isRequire()
    {
        return require;
    }

    public void setRequire(boolean require)
    {
        this.require = require;
    }

    public String getDefaultValue()
    {
        return defaultValue;
    }

    public void setDefaultValue(String defaultValue)
    {
        this.defaultValue = defaultValue;
    }

    public String getRemark()
    {
        return remark;
    }

    public void setRemark(String remark)
    {
        this.remark = remark;
    }
}
